import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../services/http-client.service';
@Injectable()
export class WclService {

	constructor(
		public httpClient: HttpClientService
	) { }
	//查询分页列表
	list(getBody) {
		return this.httpClient.get('/pms/v1/oneOnOneFundInfo/oneOnOneInfoList', getBody);
	}
	//删除产品
	del(putBody) {
		return this.httpClient.put('/pms/v1/oneOnOneFundInfo/oneOnOne', putBody);
	}
	// 修改产品运行状态
	changeProductStatus(nFundNo, type) {
		if (type == 'stop') {
			return this.httpClient.put('/pms/v1/oneOnOneFundInfo/startOperation?nFundNo=' + nFundNo + '&sStatusRunning=0');
		}
		if (type == 'run') {
			return this.httpClient.put('/pms/v1/oneOnOneFundInfo/startOperation?nFundNo=' + nFundNo + '&sStatusRunning=1');
		}
	}
	// 获取备案机构、受托人、托管人下拉框值
	getDictionary() {
		return this.httpClient.get('/pms/v1/common/dict/getStrustee?sFundType=3');
	}
}
